.nav-bar {
    display: flex;
    height: 40px;
    line-height: 40px;
    text-align: center;
}
.left, .right {
    width: 80px;
    background-color: #f00;
}
.center {
    flex: 1;
    background-color: #f80;
}